<template>
	<view class="demo">
		<u-lazy-load threshold="-250" border-radius="10" :image="icardall.goodsMainImgUrl">
		</u-lazy-load>
		<view class="pre-sale" v-if="thispresale==1">预售</view>
		<view class="textwidth">
			<view class="card-name" v-html="icardall.goodsVarieties">
			</view>
			<view class="card-address" v-html="icardall.goodsProductionArea">
			</view>
			<view class="card-price">
				￥{{icardall.goodsPrice}}
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {
				thispresale: 0
			}
		},
		props: ['icardall'],

		methods: {

		},
		mounted() {

			this.thispresale = this.icardall.goodsStatus;
			// console.log(this.icardall);
		}
	}
</script>

<style>
	.demo {
		/* width: 100%; */
		border-radius: 8px;
		background-color: #ffffff;
		position: relative;
	}

	.textwidth {
		background-color: #FFFFFF;
		width: 100%;
		position: relative;
		border-top-left-radius: 10rpx;
		border-top-right-radius: 10rpx;
		top: -10rpx;
		padding-left: 18rpx;
		padding-right: 18rpx;
	}

	.card-name {
		font-size: 28rpx;
		font-weight: bold;
		color: rgba(56, 56, 56, 1);
	}

	.card-address {
		font-size: 20rpx;
		color: rgba(128, 128, 128, 1);
	}

	.card-price {
		font-size: 20rpx;
		color: #fc6c44;
	}

	.pre-sale {
		width: 100%;
		height: 40rpx;
		background: rgba(255, 103, 61, 0.5);
		color: #FFFFFF;
		border-radius: 8rpx;
		top: -40rpx;
		margin-bottom: -40rpx;
		text-align: center;
		position: relative;
		float: left;
	}
</style>
